package com.zjs.jsp.axd.service;


import com.zjs.jsp.domain.axd.AxdCancelOrderRootData;
import com.zjs.jsp.domain.axd.AxdOrderRootData;
import com.zjs.jsp.domain.jsp.Jsp_Order;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 李文
 * @create 2017-10-23 15:04
 **/
@FeignClient("${JspApiServiceName}")
public interface JspApiService
{

    @PostMapping("/order/Cancel/{uuid}")
    String orderCancel(@PathVariable(value = "uuid") String uuid, @RequestBody AxdCancelOrderRootData root);

    @PostMapping("/order/create/{uuid}")
    String orderCreate(@PathVariable(value = "uuid") String uuid, @RequestBody Jsp_Order orders);

    @PostMapping("/order/query/list/{uuid}")
    String orderinQuiry(@PathVariable(value = "uuid") String uuid, @RequestBody AxdOrderRootData root);

    @PostMapping("/order/query/gps/{uuid}")
    String orderInGpsQuiry(@PathVariable(value = "uuid") String uuid, @RequestBody AxdOrderRootData root);

}